package com.zxy;

public class demo03 {
    public static void main(String[] args) {
        String a = "你tmd真是个傻逼";
        String aa = a.replace("tmd", "***");
        System.out.println(aa);

        String s = "2020/12/03";
        String[] ss = s.split("/");
        for (int i = 0; i < ss.length; i++) {
            System.out.println(ss[i]);
        }
        String t = "com.heima";
        String[] tt = t.split("\\.");
        for (int i = 0; i < tt.length; i++) {
            System.out.println(tt[i]);
        }
    }
}
